package com.service.user;

import com.pojo.SysUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface SysUserService {
    /**
     * 登录业务
     * @param account
     * @param password
     * @return
     */
    SysUser login(String account,String password);

    List<SysUser> list(@Param("realName") String realName,@Param("pageIndex") int pageIndex);

    int count(@Param("realName") String realName);

    int add(SysUser sysUser);

    int delete(int id);

    SysUser sysUser(int id);

    int update(SysUser user);

    SysUser getAccountExist(String account);

    int updatePassword(@Param("account") String account,@Param("password") String password);
}
